package com.nandi.deviceinstall.model

import com.nandi.deviceinstall.bean.BindRecordInfoBean
import com.nandi.deviceinstall.bean.ListDataBean
import com.nandi.deviceinstall.contract.BindRecordInfoContract
import com.nandi.deviceinstall.net.RetrofitClient
import io.reactivex.Flowable

class BindRecordInfoModel: BindRecordInfoContract.Model {

    override fun requestData(token: String, devId: String): Flowable<ListDataBean> {
        return apiService.getData(token,devId)
    }
    private val apiService = RetrofitClient.getInstance()!!.api!!

    override fun executeBindRecordInfo(token: String, id: Int): Flowable<BindRecordInfoBean> {
        return apiService.getBindRecordInfo(token, id)
    }
}